﻿using AutoMapper;
using Rbac.Domain;
using Rbac.Project.Application.Admins.Dto;
using Rbac.Project.Application.Menus.Dto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Rabc.Project.Repositories
{
    public class AutoMapperConfig : Profile
    {
        public AutoMapperConfig()
        {
            CreateMap<CreateOrUpdateDto, Admin>().ReverseMap();
            CreateMap<Menu, TreeDto>().ReverseMap();
            CreateMap<Menu, MenuDto>().ReverseMap();
            CreateMap<Menu, CreateUpdateDto>().ReverseMap();
            CreateMap<Role, Rbac.Project.Application.Roles.Dto.ListDto>().ReverseMap();
        }
    }
}
